<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.util.Calendar" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh">
<!--<![endif]-->
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>

<head>
    <meta charset="utf-8"/>
    <%@include file="../common/taglib.jsp" %>
    <title>保险代理后台管理系统</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
    <meta content="" name="description"/>
    <meta content="" name="author"/>
    <!-- ================== BEGIN BASE CSS STYLE ================== -->
    <jsp:include page="../common/header.jsp"></jsp:include>
    <!-- ================== END BASE CSS STYLE ================== -->

    <!-- ================== 单独作用于本页表格td ================== -->
    <style>
        .control-label {
            width: 140px;
            text-align: right;
            padding-right: 0;
        }

        .title {
            margin-top: 15px;
            color: #333
        }
    </style>
    <!-- ================== 单独作用于本页表格td ================== -->

</head>
<body>
<!-- begin #page-loader -->
<div id="page-loader" class="fade in"><span class="spinner"></span></div>
<!-- end #page-loader -->

<!-- begin #page-container -->
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
    <jsp:include page="../common/top.jsp"/>

    <!-- begin #sidebar -->
    <jsp:include page="../common/sitebar.jsp"/>
    <div class="sidebar-bg"></div>
    <div id="content" class="content">
        <div class="row">
            <!-- begin col-12 -->
            <div class="col-md-12">
                <!-- begin panel -->
                <div class="panel panel-inverse">
                    <input id="new-edit" value="55" hidden>
                    <input name="viewstyle" id="viewstyle" value="${viewstyle}" hidden>
                    <input name="createorder" id="createorder" value="${createorder}" hidden/>
                    <section class="pad-top-10 pad-bottom-20">
                        <ul id="ulid" class="nav nav-tabs">
                            <li class="active"><a href="#tab1" data-toggle="tab">订单列表</a></li>
                            <shiro:hasPermission name="order:view:list">
                                <li><a href="#tab2" data-toggle="tab" id="newflush">新建订单</a></li>
                            </shiro:hasPermission>
                            <li><a href="tab2" data-toggle="tab" class="hidden" id="tabEdit">编辑</a></li>
                            <li><a href="#tab3" data-toggle="tab" class="hidden">确认定价</a></li>
                            <%--<li><a href="/ins/order/export"  class="btn btn-primary m-r-10">下载</a></li>--%>
                            <li class="link-down"><span
                                    data-toggle="modal" data-target="#dwload">
                                <i class="fa fa-download fa-2"></i>下载列表
                            </span>
                            </li>
                        </ul>
                        <div class="form-wrap mar-bottom-0">
                            <div class="tab-content">
                                <div id="tab1" class="tab-pane fade active in">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-md-1 control-label" style="width: 98px">保单号：</label>
                                                <div class="col-md-2">
                                                    <input type="text" id="baodanhao" name="ordNum"  class="form-control" placeholder="保单号" />
                                                </div>
                                                <label class="col-md-1 control-label" style="width: 90px">订单日期:</label>
                                                <div class="col-md-3">
                                                    <div class="input-group input-daterange">
                                                        <input type="text" class="form-control selectData" name="createDate" id="dingdantimeStart" placeholder="开始日期" />
                                                        <span class="input-group-addon">至</span>
                                                        <input type="text" class="form-control selectData" name="updateDate" id="dingdantimeEnd" placeholder="结束日期"/>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-md-1 control-label" style="width: 98px">被保险人：</label>
                                                <div class="col-md-2">
                                                    <input type="text" id="beibaoxian" name="insurant"  class="form-control" placeholder="被保险人" />
                                                </div>
                                                <label class="col-md-1 control-label" style="width: 90px">状态：</label>
                                                <div class="col-md-2">
                                                    <select name="status" id="ordstatus"
                                                            class="form-control"
                                                            style="list-style-type: none;">
                                                        <option>请选择</option>
                                                        <c:forEach items="${orderStatus}" var="odrstatu">
                                                            <option value="${odrstatu.key}">${odrstatu.value}</option>
                                                        </c:forEach>
                                                    </select>
                                                </div>
                                                <div class="col-md-3" style="margin-left:-22px">
                                                    <button type="button" onclick="search()" class="btn btn-primary m-r-5 m-b-5">查询</button>
                                                </div>
                                            </div>
                                        </form>
                                        <div class="dataTables_wrapper no-footer">
                                            <table id="modeltable" class="table table-striped table-bordered"
                                                   style="word-break:break-all;word-wrap:break-word">
                                                <thead>
                                                <tr>
                                                    <th>保单号</th>
                                                    <th hidden>订单编号</th>
                                                    <th>被保险人</th>
                                                    <th>车牌号</th>
                                                    <th>车架号</th>
                                                    <th>保险公司</th>
                                                    <th>险种</th>
                                                    <th>商业保险费(元)</th>
                                                    <th>交强保险费(元)</th>
                                                    <th>车船税(元)</th>
                                                    <th>全保费(元)</th>
                                                    <th>应支付保费(元)</th>
                                                    <th>渠道返点</th>
                                                    <th>返佣费</th>
                                                    <th>实际结算返佣费</th>
                                                    <th>垫资到期日</th>
                                                    <th>状态</th>
                                                    <th>操作</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <c:forEach items="${orderList}" var="order">
                                                    <tr>
                                                        <td>${ordeNum}</td>
                                                        <td hidden>${order.ordCode}</td>
                                                        <td>${order.insurant}</td>
                                                        <td>${order.plateNum}</td>
                                                        <td>${order.frameNumber}</td>
                                                        <td>${order.insyrerName}</td>
                                                        <td>
                                                            <c:if test="${order.typeInsurance2==0}">
                                                                交强险
                                                            </c:if>
                                                            <c:if test="${order.typeInsurance2==1}">
                                                                商业险
                                                            </c:if>
                                                        </td>
                                                        <td>${order.mercialPremium}</td>
                                                        <td>${order.pulsoryPremium}</td>
                                                        <td>${order.vechcleVesselTax}</td>
                                                        <td>${order.allPremium}</td>
                                                        <td>${mustPremium}</td>
                                                        <td>${order.channelRebate}</td>
                                                        <td>${mustRebateAmt}</td>
                                                        <td>${order.insyrerMaturityDate}</td>
                                                        <td>
                                                            <c:if test="${order.status==1}">
                                                                待审核
                                                            </c:if>
                                                            <c:if test="${order.status==2}">
                                                                待定价
                                                            </c:if>
                                                            <c:if test="${order.status==4}">
                                                                待确认定价
                                                            </c:if>
                                                            <c:if test="${order.status==5}">
                                                                已拒绝定价
                                                            </c:if>
                                                            <c:if test="${order.status==6}">
                                                                待支付
                                                            </c:if>
                                                            <c:if test="${order.status==7}">
                                                                待生成保单
                                                            </c:if>
                                                            <c:if test="${order.status==8}">
                                                                被驳回
                                                            </c:if>
                                                            <c:if test="${order.status==9}">
                                                                待返佣
                                                            </c:if>
                                                            <c:if test="${order.status==10}">
                                                                待还款
                                                            </c:if>
                                                            <c:if test="${order.status==11}">
                                                                待退保结算
                                                            </c:if>
                                                            <c:if test="${order.status==12}">
                                                                已退保结算
                                                            </c:if>
                                                            <c:if test="${order.status==13}">
                                                                已结算
                                                            </c:if>
                                                        </td>
                                                        <td>
                                                            <c:if test="${order.status==1}">
                                                                <a href="#tab2" data-toggle="tab"
                                                                   onclick="editorder('${order.ordCode}')">编辑</a>
                                                            </c:if>
                                                            <a href="/ins/order/confirmprice?ordCode=${order.ordCode}">确认定价</a>
                                                        </td>
                                                    </tr>
                                                </c:forEach>
                                                </tbody>
                                            </table>
                                        </div>
                                </div>
                                <%--新建订单--%>
                                <div id="tab2" class="tab-pane fade">
                                    <form class="form-horizontal form-bordered" onsubmit="return editsubmit()" action="/ins/order/modify" method="post"
                                          data-parsley-validate="true" id="formsubmit">
                                        <div class="form-group">
                                            <label class="col-md-1 control-label"
                                                   style="font-size: 15px"><b>投保类型:</b></label>
                                            <div class="col-md-3" id="newcontinue">
                                                   <label class="radio-inline">
                                                               <input type="radio" id="typeInsurance1"
                                                                      name="typeInvestment" checked value="1"
                                                                      datevalue="2"> 续保
                                                   </label>
                                                   <label class="radio-inline">
                                                               <input type="radio" id="typeInsurance0"
                                                                      name="typeInvestment" value="0"
                                                                      datevalue="1"> 新车
                                                   </label>
                                            </div>
                                        </div>
                                        <h4 class="title"><strong>投保客户信息</strong></h4>
                                        <div class="form-group" id="precompanyId">
                                            <label class="col-md-1 control-label">前保险公司:</label>
                                            <div class="col-md-3">
                                                <input type="text" id="ordCode" name="ordCode" hidden/>
                                                <input type="text" id="statusord" name="status" hidden/>
                                                <input type="text" id="insyrerName" name="insyrerName" hidden/>
                                                <input id="preInsyrer" name="preInsyrer" class="form-control"
                                                       data-parsley-required="true"
                                                       data-parsley-required-message="前保险公司不能为空"
                                                       data-parsley-personname="true"
                                                       data-parsley-personname-message="前保险公司只能为英文和汉字"
                                                       data-parsley-maxlength="24"
                                                       data-parsley-maxlength-message="前保险公司最长为24个字符"/>
                                            </div>
                                        </div>
                                        <div class="form-group" id="carOwner">
                                            <label class="col-md-1 control-label">车主:</label>
                                            <div class="col-md-3">
                                                <input type="text" id="carOwner1" name="carOwner" class="form-control"
                                                       <%--data-parsley-required="true"--%>
                                                       <%--data-parsley-required-message="车主不能为空"--%>
                                                       data-parsley-personname="true"
                                                       data-parsley-personname-message="车主只能为英文和汉字"
                                                       data-parsley-maxlength="24"
                                                       data-parsley-maxlength-message="车主最长为24个字符"
                                                />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">车牌号:</label>
                                            <div class="col-md-3">
                                                <input id="productId" hidden>
                                                <input type="text" id="plateNum" name="plateNum" class="form-control"
                                                       data-parsley-required="true"
                                                       data-parsley-required-message="车牌号不能为空"
                                                       data-parsley-specialchar="true"
                                                       data-parsley-specialchar-message="车牌号不能输入特殊字符"
                                                       data-parsley-maxlength="10"
                                                       data-parsley-maxlength-message="车牌号最长为10个字符"
                                                />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">车架号:</label>
                                            <div class="col-md-3">
                                                <input type="text" id="frameNumber" name="frameNumber"
                                                       class="form-control"
                                                       data-parsley-zimucheck="true"
                                                       data-parsley-zimucheck-message="车架号只能包含数字字母"
                                                       data-parsley-maxlength="17"
                                                       data-parsley-maxlength-message="车架号最长为17位"
                                                />
                                            </div>
                                        </div>
                                        <div class="form-group hidden" id="engineNum">
                                            <label class="col-md-1 control-label">发动机号:</label>
                                            <div class="col-md-3">
                                                <input type="hidden" id="engineNum1" name="engineNum"
                                                       class="form-control"
                                                       data-parsley-required="true"
                                                       data-parsley-required-message="发动机号不能为空"
                                                       data-parsley-zimucheck="true"
                                                       data-parsley-zimucheck-message="发动机号只能包含数字字母"
                                                       data-parsley-maxlength="10"
                                                       data-parsley-maxlength-message="发动机号最长为10位"
                                                />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">车辆种类:</label>
                                            <div class="col-md-3">
                                                    <label class="radio-inline">
                                                        <input type="radio" id="vehicleType1" name="vehicleType"
                                                               value="1" checked/>客车
                                                    </label>
                                                    <label class="radio-inline">
                                                        <input type="radio" id="vehicleType2" name="vehicleType"
                                                        value="2"/>货车
                                                    </label>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">被保险人:</label>
                                            <div class="col-md-3">
                                                <input type="text" id="insurant1" name="insurant" class="form-control"
                                                       <%--data-parsley-required="true"--%>
                                                       <%--data-parsley-required-message="被保险人不能为空"--%>
                                                       data-parsley-personname="true"
                                                       data-parsley-personname-message="被保险人只能为英文和汉字"
                                                       data-parsley-maxlength="50"
                                                       data-parsley-maxlength-message="被保险人最长为50个字符"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">被保险人身份证号/组织机构代码证:</label>
                                            <div class="col-md-3">
                                                <input type="text" id="orgIdCode" name="orgIdCode" class="form-control"
                                                       <%--data-parsley-required="true"--%>
                                                       <%--data-parsley-required-message="被保人身份信息不能为空"--%>
                                                       data-parsley-zimucheck="true"
                                                       data-parsley-zimucheck-message="身份信息只能包含数字字母"
                                                       data-parsley-maxlength="20"
                                                       data-parsley-maxlength-message="身份信息最长为20位"/>
                                            </div>
                                        </div>
                                        <h4 class="title"><strong>保险公司</strong></h4>
                                        <div class="form-group" id="baoxiangongsi0">
                                            <input type="text" id="companyIddd" name="policyNumber" hidden/>
                                            <label class="col-md-1 control-label">保险公司:</label>
                                            <div class="col-md-3">
                                                <select name="insyrerId" id="companyIdd" onchange="invokecompany()"
                                                        class="form-control"
                                                        style="list-style-type: none;" data-parsley-required="true"
                                                        data-parsley-required-message="请选择保险公司">
                                                    <option value="">请选择</option>
                                                    <c:forEach items="${insurerList}" var="insurers">
                                                        <option value="${insurers.tid}"
                                                                inscode="${insurers.policyNumber}">${insurers.name}</option>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group hidden"  id="baoxiangongsi1">
                                            <label class="col-md-1 control-label">保险公司:</label>
                                            <div class="col-md-3" >
                                                <p id="baoxiangongsi2" class="form-control-static">${insyrerName}</p>
                                            </div>
                                        </div>
                                        <div class="form-group hidden"  id="xianzhong1">
                                            <label class="col-md-1 control-label">险种:</label>
                                            <div class="col-md-3" >
                                                <p id="xianzhong2" class="form-control-static"></p>
                                            </div>
                                        </div>
                                        <div class="form-group hidden" id="typeInsurance2">
                                            <label class="col-md-1 control-label">险种:</label>
                                            <div class="col-md-3">
                                                <label class="checkbox-inline hidden" id="labelcla0">
                                                    <input type="text" id="orderTid1" name="orderTid" value="${orderTid}" hidden>
                                                    <input
                                                            type="checkbox"
                                                            name="typeInsurance1"
                                                            data-parsley-required="true"
                                                            data-parsley-required-message="产品必选一项"
                                                            value="888">交强险
                                                </label>
                                                <label class="checkbox-inline hidden" id="labelcla1">
                                                    <input
                                                            type="checkbox" id="typeInsurance21"
                                                            name="typeInsurance1"
                                                            value="0">交强险
                                                </label>
                                                <label class="checkbox-inline hidden" id="labelcla2">
                                                    <input
                                                            type="checkbox" id="typeInsurance22"
                                                            name="typeInsurance1"
                                                            value="1">商业险
                                                </label>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">保险期限:</label>
                                            <div class="col-md-2">
                                                <input name="insureStartDate" id="insureStartDate" type="text"
                                                       class="form-control selectData" data-parsley-required="true"
                                                       data-parsley-required-message="起始时间不能为空"/>
                                            </div>
                                            <div class="col-md-1 text-center" style="width: 60px">
                                                <p class="form-control-static">至</p>
                                            </div>
                                            <div class="col-md-2">
                                                <input name="insureEndDate" id="insureEndDate" type="text"
                                                       class="form-control selectData" data-parsley-required="true"
                                                       data-parsley-required-message="截止时间不能为空"/>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-md-1 control-label">垫资类型:</label>
                                            <div class="col-md-3">
                                                <select id="typeInvestment" name="typeInsurance2" class="form-control"
                                                        style="list-style-type: none;" data-parsley-required="true"
                                                        data-parsley-required-message="请选择垫资类型">
                                                    <option value="">请选择</option>
                                                    <c:choose>
                                                        <c:when test="${channelstatus==6}">
                                                            <option value="1">不垫资</option>
                                                            <option value="2">垫返点</option>
                                                            <option value="3">垫保费</option>
                                                        </c:when>
                                                        <c:otherwise>
                                                            <option value="1">不垫资</option>
                                                            <option value="2">垫返点</option>
                                                        </c:otherwise>
                                                    </c:choose>
                                                </select>
                                            </div>
                                            <div id="laonAccount" class="col-md-3" hidden>
                                                <select class="form-control" id="laonAccount1" name="laonAccount"
                                                        style="list-style-type: none;" >
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">&nbsp;</label>
                                            <div class="col-sm-10">
                                                <button type="submit" class="btn btn-primary m-r-10" >提交</button>
                                                <button type="button" class="btn btn-default" onclick="newcancel()">取消
                                                </button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                <%--确认定价--%>
                                <div id="tab3" class="tab-pane fade">
                                    <form class="form-horizontal form-bordered" onsubmit="return false"
                                          action="/ins/order/modifyPatSate" method="post" data-parsley-validate="true"
                                          id="form_id">
                                        <h4 class="title" style="margin-top:10px;"><strong>新车投保客户信息</strong></h4>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">保险公司:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.insyrerName}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">车主:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.carOwner}</strong></p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">车牌号:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.plateNum}</strong></p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">车架号:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.frameNumber}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">发动机号:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.engineNum}</strong></p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">车辆种类:</label>
                                            <div class="col-md-3">
                                                <c:if test="${orderVo.vehicleType==1}">
                                                    客车
                                                </c:if>
                                                <c:if test="${orderVo.vehicleType==2}">
                                                    货车
                                                </c:if>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">被保险人:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.insurant}</strong></p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">被保险人身份证号/组织机构代码证:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.orgIdCode}</strong></p>
                                            </div>
                                        </div>
                                        <h4 class="title"><strong>保险信息</strong></h4>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">保险公司:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.insyrerName}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">险种:</label>
                                            <div class="col-md-3">
                                                <c:if test="${orderVo.typeInsurance==0}">
                                                    <p class="form-control-static"><strong>交强险</strong></p>
                                                </c:if>
                                                <c:if test="${orderVo.typeInsurance==1}">
                                                    <p class="form-control-static"><strong>商业险</strong></p>
                                                </c:if>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">保险期限:</label>
                                            <div class="col-md-3" style="width: 120px;">
                                                <p class="form-control-static">
                                                    <strong>${orderVo.insureStartDate}</strong></p>
                                            </div>
                                            <div class="col-md-1 text-center">
                                                <p class="form-control-static"><strong>至</strong></p>
                                            </div>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.insureEndDate}</strong>
                                                </p>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-md-1 control-label">垫资类型:</label>
                                            <div class="col-md-3">
                                                <c:if test="${orderVo.typeInsurance2==1}">
                                                    <p class="form-control-static"><strong>不垫资</strong></p>
                                                </c:if>
                                                <c:if test="${orderVo.typeInsurance2==2}">
                                                    <p class="form-control-static"><strong>垫返点</strong></p>
                                                </c:if>
                                                <c:if test="${orderVo.typeInsurance2==3}">
                                                    <p class="form-control-static"><strong>垫保费</strong></p>
                                                </c:if>
                                            </div>
                                            <div class="col-md-3" hidden>
                                                <p class="form-control-static"><strong>${orderVo.laonAccount}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <c:if test="${orderVo.typeInsurance==0}">
                                                <label class="col-md-1 control-label">交强保险费:</label>
                                                <div class="col-md-3" style="width: 120px;">
                                                    <p class="form-control-static">
                                                        <strong>${orderVo.pulsoryPremium}</strong></p>
                                                </div>
                                            </c:if>
                                            <c:if test="${orderVo.typeInsurance==1}">
                                                <label class="col-md-1 control-label">商业险保费:</label>
                                                <div class="col-md-3" style="width: 120px;">
                                                    <p class="form-control-static">
                                                        <strong>${orderVo.mercialPremium}</strong></p>
                                                </div>
                                            </c:if>
                                            <label class="col-md-1 control-label"
                                                   style="width: 80px;    border-right: none;">车船税:</label>
                                            <div class="col-md-3" style="width: 120px;border-left: none;">
                                                <p class="form-control-static">
                                                    <strong>${orderVo.vechcleVesselTax}</strong></p>
                                            </div>


                                            <label class="col-md-1 control-label"
                                                   style=" border-right: none;">税后保费:</label>
                                            <div class="col-md-3" style="width: 120px;border-left: none;">
                                                <p class="form-control-static"><strong>${orderVo.texPremium}</strong>
                                                </p>
                                            </div>

                                        </div>
                                        <h4 class="title"><strong>费用合计</strong></h4>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">全保费:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.allPremium}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">应支付保费:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.mustPremium}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">税后保费:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.texPremium}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">渠道返点:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.channelRebate}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">返佣费:</label>
                                            <div class="col-md-3">
                                                <p class="form-control-static"><strong>${orderVo.mustRebateAmt}</strong>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label" for="ord_message">备注:</label>
                                            <div class="col-md-4">
                                                <input type="text" id="orderTid" name="orderTid" value="${orderTid}" hidden>
                                                <input type="text" id="orderCode" name="orderCode" value="${orderCode}" hidden>
                                                <textarea class="form-control" id="ord_message" name="orderMark"
                                                          rows="4" data-parsley-required="true"
                                                          data-parsley-maxlength="100" placeholder="请输入备注"
                                                          data-parsley-required-message="请输入备注"
                                                          data-parsley-maxlength-message="请输入100字符以内"></textarea>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-1 control-label">&nbsp;</label>
                                            <div class="col-sm-10">
                                                <button type="button" class="btn btn-primary m-r-10"
                                                        onclick="confirmModel()">确认
                                                </button>
                                                <button type="button" class="btn btn-default"
                                                        onclick="refuseprice()">拒绝
                                                </button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </section>
                </div>
                <!-- end panel -->
            </div>
            <!-- end col-12 -->
        </div>
        <!-- end row -->
    </div>
    <!-- end #content -->
</div>
<%-- modal --%>
<%--下载提示框--%>
<div class="modal fade" id="dwload">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">×</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" id="downloadstyle">
                确认下载当前列表信息
            </div>
            <div class="modal-footer">
                <a href="javascript:;" onclick="downloadord()" class="btn btn-sm btn-primary">确定</a>
                <a href="javascript:;" class="btn btn-sm btn-default" data-dismiss="modal">取消</a>
            </div>
        </div>
    </div>
</div>
<%--确认定价提示框--%>
<div class="modal fade" id="modal-confirmvalue">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body" id="confirmbutton">
            </div>
            <div class="modal-footer">
                <button type="button" id="disbutton" onclick="argeePayState()"
                        class="btn btn-sm btn-success">确定
                </button>
                <a href="javascript:;" class="btn btn-sm btn-white" data-dismiss="modal">取消</a>
            </div>
        </div>
    </div>
</div>

<!-- end page container -->
<jsp:include page="../common/footer.jsp"/>

<!-- ================== END PAGE LEVEL JS ================== -->
<script src="${ctx}/static/js/order/main_order.js"></script>
</body>
</html>
